import request from '@/utils/request'

// 查询固定资产列表
export function listAssets(query) {
    return request({
        url: '/plat/assets/list',
        method: 'get',
        params: query
    })
}

// 查询固定资产详细
export function getAssets(assetNumber) {
    return request({
        url: '/plat/assets/' + assetNumber,
        method: 'get'
    })
}

// 新增固定资产
export function addAssets(data) {
    return request({
        url: '/plat/assets',
        method: 'post',
        data: data
    })
}

// 修改固定资产
export function updateAssets(data) {
    return request({
        url: '/plat/assets',
        method: 'put',
        data: data
    })
}

// 删除固定资产
export function delAssets(assetNumber) {
    return request({
        url: '/plat/assets/' + assetNumber,
        method: 'delete'
    })
}
